<div id="sideBar">	
	<ul class="sideNav">
		<li><?php echo $this->Html->link(__('Új fejléc kép'), array('action' => 'add')); ?></li>
                <li><?php echo $this->Html->link(__('Fejlécképek listázása'), array('action' => 'index')); ?></li>
	</ul>
</div>
<div id="main">	
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th></th>
			<th><?php echo $this->Paginator->sort('filename','Kép neve'); ?></th>
			<th><?php echo $this->Paginator->sort('title','Kép címe'); ?></th>
			<th class="actions"><?php echo __('Műveletek'); ?></th>
	</tr>
	<?php foreach ($headerimages as $headerimage): ?>
	<tr>		
                <td><?php echo $this->Html->image('headers/'.$headerimage['Headerimage']['filename'],array('width'=>'100')); ?>&nbsp;</td>
		<td><?php echo h($headerimage['Headerimage']['filename']); ?>&nbsp;</td>
                <td><?php echo h($headerimage['Headerimage']['title']); ?>&nbsp;</td>		
		<td class="actions">
			<?php echo $this->Html->link(__('Megtekintés'), array('action' => 'view', $headerimage['Headerimage']['id'])); ?>			
			<?php echo $this->Form->postLink(__('Törlés'), array('action' => 'delete', $headerimage['Headerimage']['id']), null, __('Biztos törölni szeretnéd # %s?', $headerimage['Headerimage']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('előző'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('következő') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="clear"></div>
